import { FormState } from "@src/pages/loginPage/index";
import { Credentials } from "@src/store/reducers/userReducer";
import RequestManager from "@src/utils/RequestManager";
import { GeekResponse } from "response";

//登录
export function loginRequest(auth:Pick<FormState,'mobile' | 'code'>){
    return RequestManager.instance.request<GeekResponse<Credentials>>({
        url:"/authorizations",
        method:'post',
        data:auth
    })
}